package com.sec.android.app.myfiles.feature.cloud;

import android.content.Context;

import com.sec.android.app.myfiles.MyFilesTestRunner;
import com.sec.android.app.myfiles.info.AppConstants;

import junit.framework.Assert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.powermock.api.mockito.PowerMockito;

/**
 * Created by jujube.lee on 2016-06-23.
 */
@RunWith(MyFilesTestRunner.class)
public class testGoogleCloudImp {
    GoogleCloudImp mImp;

    @Before
    public void setUp() throws Exception {
        Context context = PowerMockito.mock(Context.class);
        mImp = new GoogleCloudImp(context);
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void testIsSignedIn() {
        Assert.assertFalse(mImp.isSignedIn());
    }

    @Test
    public void testGetStoragePath() {
        String googlePath = mImp.getStoragePath();
        Assert.assertEquals(AppConstants.StoragePath.GOOGLE_DRIVE_FOLDER, googlePath);
    }

    @Test
    public void testGetCloudName() {
        String name = mImp.getCloudName();
        Assert.assertEquals(AppConstants.CloudType.GOOGLE_DRIVE, name);
    }

}
